package com.example.gw_back_end.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.gw_back_end.domain.PageParam;
import com.example.gw_back_end.domain.PageResult;
import com.example.gw_back_end.domain.SearchParams;
import com.example.gw_back_end.domain.entities.Post;

public interface PostService extends IService<Post> {

    PageResult<Post> getPostList(PageParam pageParam);

    Post getPostById(Integer id,String clientType);

    boolean addPost(Post post);

    boolean deletePost(Integer id);

    boolean updatePost(Post post);

    PageResult<Post> searchPost(SearchParams searchParams);
}
